unsigned long nPageID;
PageMaker internal ID for master page.
const char * sMasterName;
Name of master page.Page ID stays with page. While the name of a master page may change (if you rename it), its ID remains the same: A master page is independent of its name. If you assign private data to a master page and the page is subsequently renumbered, you can still access the private data using the page ID. (Assigning private data to a master page is one of the few instances where you need the ID of a master page.)
Example.
PGetMasterPageList mpList;
if (mpList.Count() > 0) ...
The PDefineMasterPage, PDeleteMasterPage, PMasterPage, PRenameMasterPage, and PSaveAsMasterPage commands
Comments or suggestions? Contact Adobe Developer Support